package com.fanben100.domain;

import java.io.Serializable;

import com.fanben100.biz.ValidLoginModel;

/**
 * 报单数据
 * 
 * @author Administrator
 * 
 */
public class FormData implements Serializable {

	private FormData() {
	}

	private static class SingleFormDataHolder {
		private static FormData instance = new FormData();
	}

	public static FormData getInstance(LoginModel sellerModel) {
		if (sellerModel != null) {
			if (SingleFormDataHolder.instance.sellerId == null) {
				SingleFormDataHolder.instance.sellerId = ((ValidLoginModel) sellerModel)
						.getSellerId();
			}
			if (SingleFormDataHolder.instance.sellerPassword == null) {
				SingleFormDataHolder.instance.sellerPassword = sellerModel
						.getLoginPassword();
			}
		}
		return SingleFormDataHolder.instance;
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 商家编号
	 */
	private Serializable sellerId;

	/**
	 * 商家密码
	 */
	private String sellerPassword;

	/**
	 * 会员登录id
	 */
	private Serializable customerId;
	/**
	 * 会员登录密码
	 */
	private String customerPassword;
	/**
	 * 操作者id
	 */
	private Serializable operater;
	/**
	 * 总消费金额
	 */
	private Double expenditureMoney;

	public Serializable getSellerId() {
		return sellerId;
	}

	public void setSellerId(Serializable sellerId) {
		this.sellerId = sellerId;
	}

	public String getSellerPassword() {
		return sellerPassword;
	}

	public void setSellerPassword(String sellerPassword) {
		this.sellerPassword = sellerPassword;
	}

	public Serializable getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Serializable customerId) {
		this.customerId = customerId;
	}

	public String getCustomerPassword() {
		return customerPassword;
	}

	public void setCustomerPassword(String customerPassword) {
		this.customerPassword = customerPassword;
	}

	public Serializable getOperater() {
		return operater;
	}

	public void setOperater(Serializable operater) {
		this.operater = operater;
	}

	public Double getExpenditureMoney() {
		return expenditureMoney;
	}

	public void setExpenditureMoney(Double expenditureMoney) {
		this.expenditureMoney = expenditureMoney;
	}

}
